package nineteen;

public enum SpaceShip {

    /**
     * 侦察、货物、运输、巡洋舰、战舰、母舰
     */
    SCOUT,CARGO,TRANSPORT,CRUISER,BATTLESHIP, MOTHERSHIP;


    @Override
    public String toString() {
        String id = name();
        String lower = id.substring(1).toLowerCase();
        return id.charAt(0) + lower;
    }

    public static void main(String[] args) {
        for (SpaceShip s : values() ) {
            System.out.println(s);
        }
    }
}
